CC = gcc

vpath %.c src
vpath %.c src/lib
vpath %.c src/http

simq: simq.c server.o http.o factory.o dispatcher.o queue.o client.o \
	  config.o net.o client.o circle.o dict.o zipmap.o rect.o
	$(CC) -o $@ $^ -lpthread

%.o : %.c
	$(CC) -c $<

clean:
	rm -fr simq *.o
